{extend name="public/base"/}
{block name="style"}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/libs/bootstrap-editable.css">
{/block}
{block name="body"}
<div class="main-box clearfix">
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>{$meta_title}</h2>
		</div>
	</header>
	<div class="main-box-body clearfix">
            	    <div class="navbar navbar-default">
			<form action="" class="navbar-form form-inline" method="get">
				<div class="form-group">
					<label class="control-label" for="input-order-id">用户名</label>
					<div class="input-group">
						<input type="text" name="username" value="{$param['username']|default=''}" placeholder="用户名" class="form-control">
					</div>
				</div>
				<button class="btn btn-primary" type="submit"><i class="fa fa-search"></i> 筛选</button>
			</form>
		</div>
		<div class="table-responsive clearfix">
			<table class="table table-hover">
				<thead>
					<tr>
						<th>ID</th>	
                                                <th>手机号</th>
                                                <th>用户昵称</th>
						<th>注册时间</th>
						<th>账号状态</th>
                                                <th>操作</th>
					</tr>
				</thead>
				<tbody>
					{volist name="list" id="item"}
					<tr>
						<td>{$item['id']}</td>
                                                <td>{$item['username']}</td>
						<td>{$item['nickname']}</td>                                     
						<td>{$item['reg_time']|date='Y-m-d H:i',###}</td>
                                                <td>{$item['status']|getUserStatus}</td>
						<td>
                                                      <a title="编辑" href="{:url('edit?id='.$item['id'])}">编辑</a>
                                                      <?php if($item['status']==0){ ?>
                                                           <a title="冻结" href="{:url('change_status')}?id={$item.id}&is_ben=1" class="confirm ajax-get">冻结</a>
                                                      <?php }else{ ?>
                                                           <a title="解冻" href="{:url('change_status')}?id={$item.id}&is_ben=0" class="confirm ajax-get">解冻</a>
                                                      <?php } ?>
						</td>
					</tr>
					{/volist}
				</tbody>
			</table>
			{$list->render()}
		</div>
	</div>
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="__PUBLIC__/js/bootstrap-editable.min.js"></script>
<script type="text/javascript">
</script>
{/block}